package sskj.regulatory.presentation.screen.register

import sskj.regulatory.presentation.base_mvp.api.ApiContract

interface RegisterContract {
    interface View : ApiContract.View {
        //发送等待
        fun sendLoading()

        //发送成功
        fun sendOk(phone: String, vCode: String)

        //发送失败
        fun sendError(errorMessage: String? = "")

        //未到时间发送
        fun sendTimeNo()

        //
        fun showRegisterYes()

        //
        fun showRegisterNo()
    }

    interface Presenter : ApiContract.Presenter<View> {

        //发送注册验证码短信
        fun sendVCode(phone: String)

        fun isRegister(username: String)
    }
}